<?php

use yii\db\Migration;

class m170630_013112_alter_user extends Migration
{
    public function up()
    {
        $this->addColumn('{{%user}}', 'phone', 'varchar(13) DEFAULT "" COMMENT "手机号" after email');
    }

    public function down()
    {
        $this->dropColumn('{{%user}}', 'phone');
    }
}
